import { Vec2, v2, Node, game, view, director, UITransform, v3, Vec3, Layers, Canvas, Widget, Camera, Color, renderer } from "cc";
// import { Key, events } from "./enum/Enums";
import { Action, _DrawOneInfo } from "./interfaces/BaseInter";
// import { save } from "./utils/Tools";
export const defaultChallengeLv = 200
export class Global {
  static Debug = true;

  /** 加载进度 */
  static LoadingRate = 0;

  /** 开始 */
  static start = false;

  static layer: Node[] = [];

  // /** 当前关卡 */
  // static lv = 1;
  /** 最大关卡 */
  static maxLv = 999;
  /** 最多试管数 */
  static maxTube = 15;
  /** 回退 */
  static action_list: Array<Action> = [];
  /** 任务数量 */
  static action_step = 5;


  /** 管配置 */
  static _cupSetting = {
    haveList: ['01'],
    current: '01',
  };

  static get cupSetting() {
    return this._cupSetting;
  }
  static set cupSetting(value) {
    this._cupSetting = value;
  }
  
  // /* used for game pause */
  // static Pause(isPause = true) {
  //   director.emit(events.Pause, isPause);
  //   Global.start = !isPause;
  // }
}